<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/restrito/layout/template.xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core">

    <ui:define name="content">
        <p>
            <ui:insert name="content">
            </ui:insert>
        </p>
        <h:form>
            <rich:panel>
                <f:facet name="header">
                    <h:panelGroup>
                        <h:outputText value="Falta pouco pra finalizar sua compra" />
                    </h:panelGroup>
                </f:facet>
                <h:panelGrid columns="2">
                    <h:outputText style="font-size: 15px; color: blue;" value=" O Valor original da Compra é: #{vendaController.valorInicialDaVenda}: "/> <br />
                    <h:outputText style="font-size: 15px; color: blue;" value=" Subtraido 5% ( desconto por pagamento a vista). Desconto de R$= #{vendaController.valorDoDescontoAVista} "/><br />
                    <h:outputText style="font-size: 15px; color: blue;" value=" O Valor final da Compra é: #{vendaController.selectSale.valor}: "/><br />
                </h:panelGrid>
                <br/><br/><br/>
                <h:commandButton value=" Voltar " action="escolherPagamento"/>
                <h:commandButton value=" Finalizar Compra " action="#{vendaController.finishingSale}"/>
            </rich:panel>
        </h:form>
        <br/>
        <h:messages style="font-size: 13px; color: white;"/>
    </ui:define>
</ui:composition>
